import type { App } from 'vue';
import _Button from './button.vue';
import { getComponentPrefix } from '../_utils/global-config';


const Button = Object.assign(_Button, {
    install(app: App) {
        const componentPrefix = getComponentPrefix(); 
        app.component(componentPrefix + _Button.name, _Button);
    }
});

export type ButtonInstanse = InstanceType<typeof _Button>;
export type { ButtonProps } from './interface';
export default Button;